<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="xxf">
    <title>信息平台</title>
	<link href="http://127.0.0.1:7080/css/xxf.css" rel="stylesheet">
    <!-- Bootstrap Core CSS -->
    <link href="http://127.0.0.1:7080/css/bootstrap.min.css" rel="stylesheet">
    <!-- MetisMenu CSS -->
    <link href="http://127.0.0.1:7080/sb2/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="http://127.0.0.1:7080/sb2/dist/css/sb-admin-2.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="http://127.0.0.1:7080/sb2/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
</head>
<body>
    <div id="wrapper">
        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">菜单</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img alt="" src="http://127.0.0.1:7080/img/people.png" class="img-circle" width="50" height="50">
                <span class="navbar-brand"><a href="http://127.0.0.1:7080/admin">信息平台</a>(登录128次)</span>
            </div>
            <!-- /.navbar-header -->
            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope fa-fw"></i>消息
                    </a>
                    <!-- /.dropdown-user -->
                </li>
                
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>徐秀峰 <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="javascript:navObj.userinfo();"><i class="fa fa-user fa-fw"></i> 用户信息</a>
                        </li>
                        <li><a href="javascript:navObj.setting();"><i class="fa fa-gear fa-fw"></i> 设置</a>
                        </li>
                        <li><a href="javascript:navObj.about();"><i class="fa fa-mobile-phone fa-fw"></i> 关于</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="http://127.0.0.1:7080/out"><i class="fa fa-sign-out fa-fw"></i> 安全退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                
                <!-- /.dropdown -->
            </ul>

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="搜索...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                                                <li>
                           	<a href="http://127.0.0.1:7080/qxmanage" ><i class="fa fa-fw fa-dashboard"></i> 权限管理</a>
                        </li>
                                                <li>
                           	<a href="http://127.0.0.1:7080/peixunchaxun" ><i class="fa fa-fw fa-dashboard"></i> 培训学员查询</a>
                        </li>
                                            </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>    
<!-- DataTables Responsive CSS -->
    <link href="sb2/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <?php echo $_ctitle; ?>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>班级名称</th>
                                        <th>姓名</th>
                                        <th>电话</th>
                                        <th>身份证</th>
                                        <th>人员类型</th>
                                        <th>时期</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	                                </tbody>
                            </table>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
             </div>
        </div>
        <!-- /#page-wrapper -->
  </div>
        <!-- DataTables JavaScript -->
    </div>
    <!-- /#wrapper -->
    <!-- jQuery -->

    <script src="http://127.0.0.1:7080/js/jquery.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="http://127.0.0.1:7080/js/bootstrap.min.js"></script>
    <!-- Metis Menu Plugin JavaScript -->
    <script src="http://127.0.0.1:7080/sb2/vendor/metisMenu/metisMenu.min.js"></script>
    <!-- Custom Theme JavaScript -->
    <script src="http://127.0.0.1:7080/sb2/dist/js/sb-admin-2.js"></script>
    <script src="http://127.0.0.1:7080/js/jquery.xxfset.js"></script>
    
<script type="text/javascript">
var navObj={
		setting(){
			$.xconfirm("原密码 <input type='password' id='navObj_pass0'><br><br>新密码 <input type='password' id='navObj_pass1'><br><br>新密码 <input type='password' id='navObj_pass2'>",function(tf){
				if(tf){
					var ypass=$("#navObj_pass0").val();
					var xpass1=$("#navObj_pass1").val();
					var xpass2=$("#navObj_pass2").val();
					if(ypass.length<1||xpass1.length<1||xpass2.length<1){
						alert("输入错误，修改失败！");
					}else{
						if(xpass1!=xpass2){
							alert("新密码不一致，修改失败！");
						}else{
							$.post("http://127.0.0.1:7080/upassword",{uid:30,pass1:ypass,pass2:xpass1},function(data){
								if(data!=0){
									alert("修改成功！");
									location.href="http://127.0.0.1:7080/out";
								}else{
									alert("原密码不正确，修改失败！");
								}
							});
						}
					}
				}
			});
		}
};
</script>
</body>
</html>    <script src="sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true,
            "aaSorting": [[ 0, "desc" ]]
        });
    });
   
    function del(pid){
		$.xconfirm("删除后无法恢复，确定要删除此条记录么？",function(data){
 			if(data){
				$.xloading(1);
				$.post($.gu("peixunbanadd"),{type:'del',pid:pid},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("删除失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }
    function add(){
		var shiqi=$("#shiqi").val();
 		var bzrid=$("#bzrid").val();
 		var pname=$("#pname").val();
 		if(shiqi=="0"||bzrid=="0"||pname.length<1){
			$.xalert("请将信息填写完整！");return false;
 	 	}
    	$.xconfirm("确定添加？",function(data){
 			if(data){
				$.xloading(1);
				$.post($.gu("peixunbanadd"),{type:'add',shiqi:shiqi,bzrid:bzrid,pname:pname,uid:<br />
<b>Notice</b>:  Undefined index: id in <b>D:\Wnmp\html\infopf\view\Peixunchaxun_v.php</b> on line <b>98</b><br />
},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("添加失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }    
    </script>